CaptureScreenshotRequest

data class CaptureScreenshotRequest(format: String?, quality: Int?, clip: Viewport?, fromSurface: Boolean?, captureBeyondViewport: Boolean?)

Represents request frame that can be used with Page#captureScreenshot operation call.

Capture page screenshot.

See also

Constructors

CaptureScreenshotRequest
Link copied to clipboard
fun CaptureScreenshotRequest(format: String? = null, quality: Int? = null, clip: Viewport? = null, fromSurface: Boolean? = null, captureBeyondViewport: Boolean? = null)

Properties

captureBeyondViewport
Link copied to clipboard
val captureBeyondViewport: Boolean? = null
Capture the screenshot beyond the viewport.
clip
Link copied to clipboard
val clip: Viewport? = null
Capture the screenshot of a given region only.
format
Link copied to clipboard
val format: String? = null
Image compression format (defaults to png).
fromSurface
Link copied to clipboard
val fromSurface: Boolean? = null
Capture the screenshot from the surface, rather than the view.
quality
Link copied to clipboard
val quality: Int? = null
Compression quality from range 0..

Sources

jvm source
Link copied to clipboard